package com.runshu.newsmartark.entity;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.room.Ignore;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/10/26
 * @decs：
 */

public class ProductsBean implements Parcelable {
    /**
     * id : null
     * serialNo : null
     * productNo : B.112.002.0017
     * productName : 麦瑞通造影导丝
     * productModel : IQ35F150J3
     * batchNo : K1759239
     * periodDate : 2023-01-08T16:00:00.000+00:00
     * createTime : null
     * remark : null
     * stock : 10
     */
    @Ignore
    private String id;
    @Ignore
    private String serialNo;
    private String productNo;
    private String productName;
    private String productModel;
    @Ignore
    private String batchNo;
    @Ignore
    private String periodDate;
    @Ignore
    private String createTime;
    @Ignore
    private String remark;
    private int stock;
    //0 上架  1 领取
    @Ignore
    private int inventoryStatus;
    @Ignore
    private String stockName;
    private String manufacturer;
    @Ignore
    private String hwName;
    private String productVendor;

    public String getProductVendor() {
        return productVendor == null ? "" : productVendor;
    }

    public void setProductVendor(String productVendor) {
        this.productVendor = productVendor == null ? "" : productVendor;
    }

    public String getHwName() {
        return hwName == null ? "" : hwName;
    }

    public void setHwName(String hwName) {
        this.hwName = hwName == null ? "" : hwName;
    }

    public String getManufacturer() {
        return manufacturer == null ? "" : manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer == null ? "" : manufacturer;
    }

    public static Creator<ProductsBean> getCREATOR() {
        return CREATOR;
    }

    public String getStockName() {
        return stockName == null ? "" : stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName == null ? "" : stockName;
    }

    public String getId() {
        return id == null ? "" : id;
    }

    public void setId(String id) {
        this.id = id == null ? "" : id;
    }

    public String getSerialNo() {
        return serialNo == null ? "" : serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo == null ? "" : serialNo;
    }

    public String getProductNo() {
        return productNo == null ? "" : productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo == null ? "" : productNo;
    }

    public String getProductName() {
        return productName == null ? "" : productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? "" : productName;
    }

    public String getProductModel() {
        return productModel == null ? "" : productModel;
    }

    public void setProductModel(String productModel) {
        this.productModel = productModel == null ? "" : productModel;
    }

    public String getBatchNo() {
        return batchNo == null ? "" : batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo == null ? "" : batchNo;
    }

    public String getPeriodDate() {
        return periodDate == null ? "" : periodDate;
    }

    public void setPeriodDate(String periodDate) {
        this.periodDate = periodDate == null ? "" : periodDate;
    }

    public String getCreateTime() {
        return createTime == null ? "" : createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? "" : createTime;
    }

    public String getRemark() {
        return remark == null ? "" : remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? "" : remark;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getInventoryStatus() {
        return inventoryStatus;
    }

    public void setInventoryStatus(int inventoryStatus) {
        this.inventoryStatus = inventoryStatus;
    }

    public ProductsBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString( this.id );
        dest.writeString( this.serialNo );
        dest.writeString( this.productNo );
        dest.writeString( this.productName );
        dest.writeString( this.productModel );
        dest.writeString( this.batchNo );
        dest.writeString( this.periodDate );
        dest.writeString( this.createTime );
        dest.writeString( this.remark );
        dest.writeInt( this.stock );
        dest.writeInt( this.inventoryStatus );
        dest.writeString( this.stockName );
        dest.writeString( this.manufacturer );
    }

    protected ProductsBean(Parcel in) {
        this.id = in.readString();
        this.serialNo = in.readString();
        this.productNo = in.readString();
        this.productName = in.readString();
        this.productModel = in.readString();
        this.batchNo = in.readString();
        this.periodDate = in.readString();
        this.createTime = in.readString();
        this.remark = in.readString();
        this.stock = in.readInt();
        this.inventoryStatus = in.readInt();
        this.stockName = in.readString();
        this.manufacturer = in.readString();
    }

    public static final Creator<ProductsBean> CREATOR = new Creator<ProductsBean>() {
        @Override
        public ProductsBean createFromParcel(Parcel source) {
            return new ProductsBean( source );
        }

        @Override
        public ProductsBean[] newArray(int size) {
            return new ProductsBean[size];
        }
    };
}